/**
 * TDS PEC 4
 * Grupo 3H2M
 *
 * El paquete <code>edu.uoc.tds.pec4.mantenimiento</code> agrupa todas las
 * interfaces, clases y elementos de la GUI para la gestión del subsistema 
 * de Mantenimiento
 */
package edu.uoc.tds.pec4.mantenimiento;

import edu.uoc.tds.pec4.rmi.GestorMantenimientoInterface;
import edu.uoc.tds.pec4.beans.AuditoriaDTO;
import edu.uoc.tds.pec4.beans.AulaDTO;
import edu.uoc.tds.pec4.beans.CFisicaDTO;
import edu.uoc.tds.pec4.beans.CiudadDTO;
import edu.uoc.tds.pec4.beans.UsuarioDTO;
import edu.uoc.tds.pec4.common.util.Constantes;
import edu.uoc.tds.pec4.common.util.TDSLanguageUtils;
import edu.uoc.tds.pec4.common.util.UtilidadesGUI;
import edu.uoc.tds.pec4.server.bbdd.exceptions.GestorMantenimientoException;
import java.awt.Frame;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;
import java.util.Collections;
import java.util.Enumeration;
import java.util.List;
import javax.swing.DefaultListModel;
import javax.swing.JButton;
import javax.swing.JOptionPane;

/**
 * La clase <code>DialogAltaAula</code> representa la interfaz de
 * usuario para el alta de un aula.<br />
 *
 * Interficie de usuario para el alta de aulas.
 *
 * @author	Luis Rivas Mariño
 * @version	11/12/2011
 * @see		edu.uoc.tds.pec4.common.GestorMantenimientoInterface
 */
public class DialogAltaAula extends javax.swing.JDialog {

    /** clientConnected Indica si el cliente está conectado al servidor */
    private boolean clientConnected = false;
    /** objRemoto es el objeto empleado como interfaz en la comunicación RMI */
    private GestorMantenimientoInterface objRemotoMantenimiento = null;
    private DefaultListModel itemDisponibles = null;
    private DefaultListModel itemSeleccionados = null;
    /** usLogeado representa al usuario que está autentificado */
    private UsuarioDTO usLogeado;
    // Obtenemos el id del usuario 
    String idConectado;

    /** Creates new form DialogAltaAula */
    public DialogAltaAula(java.awt.Frame parent, boolean modal, UsuarioDTO usLogeado) {
        super(parent, TDSLanguageUtils.getMessage("mantenimiento.aula.alta.titulo"), modal);

        this.usLogeado = usLogeado;
        idConectado = usLogeado.getIdUsuario();

        conectarCliente();

        initComponents();

        rellenaLista();

        //Centramos la ventana en la pantalla
        UtilidadesGUI.centrarVentana(this);
    }

    /** Este método es llamado desde el constructor para 
     *  inicializar el formulario.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        panelDatosAula = new javax.swing.JPanel();
        lblIdAula = new javax.swing.JLabel();
        nombre = new javax.swing.JTextField();
        lblAforo = new javax.swing.JLabel();
        aforo = new javax.swing.JTextField();
        lblSuperficie = new javax.swing.JLabel();
        superficie = new javax.swing.JTextField();
        lblDescripcion = new javax.swing.JLabel();
        lblNombre = new javax.swing.JLabel();
        idAula = new javax.swing.JTextField();
        inactiva = new javax.swing.JCheckBox();
        jScrollPane3 = new javax.swing.JScrollPane();
        descripcion = new javax.swing.JTextArea();
        panelDireccion = new javax.swing.JPanel();
        lblCiudad = new javax.swing.JLabel();
        lblDireccion = new javax.swing.JLabel();
        direccion = new javax.swing.JTextField();
        lblCodPostal = new javax.swing.JLabel();
        codPostal = new javax.swing.JTextField();
        lblCoordGps = new javax.swing.JLabel();
        gpsX = new javax.swing.JTextField();
        gpsY = new javax.swing.JTextField();
        lblComoLlegar = new javax.swing.JLabel();
        comoLlegar = new javax.swing.JTextField();
        ciudad = new javax.swing.JTextField();
        nomCiudad = new javax.swing.JTextField();
        btnBuscar = new javax.swing.JButton();
        panelCFDisponibles = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        lcfDisponibles = new javax.swing.JList();
        panelPrecio = new javax.swing.JPanel();
        lblPrecioHora = new javax.swing.JLabel();
        precioHora = new javax.swing.JTextField();
        lblPrecioDia = new javax.swing.JLabel();
        precioDia = new javax.swing.JTextField();
        lblPorcentCancel = new javax.swing.JLabel();
        porcentCancel = new javax.swing.JTextField();
        panelBotones = new javax.swing.JPanel();
        btnConfirmar = new javax.swing.JButton();
        btnCancelar = new javax.swing.JButton();
        panelCFSeleccionadas = new javax.swing.JPanel();
        jScrollPane2 = new javax.swing.JScrollPane();
        lcfSeleccionados = new javax.swing.JList();
        panelBotonesC = new javax.swing.JPanel();
        dobleDcha = new javax.swing.JButton();
        dcha = new javax.swing.JButton();
        izda = new javax.swing.JButton();
        dobleIzda = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

        panelDatosAula.setBorder(javax.swing.BorderFactory.createTitledBorder(null, TDSLanguageUtils.getMessage("mantenimiento.gui.panel.aula"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 11))); // NOI18N

        lblIdAula.setText(TDSLanguageUtils.getMessage("mantenimiento.gui.etiqueta.idaula"));

        nombre.setFont(new java.awt.Font("Tahoma", 1, 11));

        lblAforo.setText(TDSLanguageUtils.getMessage("mantenimiento.gui.etiqueta.aforo"));

        aforo.setFont(new java.awt.Font("Tahoma", 1, 11));
        aforo.setHorizontalAlignment(javax.swing.JTextField.RIGHT);

        lblSuperficie.setText(TDSLanguageUtils.getMessage("mantenimiento.gui.etiqueta.superficie"));

        superficie.setFont(new java.awt.Font("Tahoma", 1, 11));
        superficie.setHorizontalAlignment(javax.swing.JTextField.RIGHT);

        lblDescripcion.setText(TDSLanguageUtils.getMessage("mantenimiento.gui.etiqueta.descripcion"));

        lblNombre.setText(TDSLanguageUtils.getMessage("mantenimiento.gui.etiqueta.nombre"));

        idAula.setEditable(false);
        idAula.setFont(new java.awt.Font("Tahoma", 1, 11));
        idAula.setHorizontalAlignment(javax.swing.JTextField.CENTER);

        inactiva.setText(TDSLanguageUtils.getMessage("mantenimiento.gui.etiqueta.inactiva"));
        inactiva.setEnabled(false);

        descripcion.setColumns(1);
        descripcion.setFont(new java.awt.Font("Tahoma", 0, 11)); // NOI18N
        descripcion.setLineWrap(true);
        descripcion.setRows(5);
        descripcion.setWrapStyleWord(true);
        jScrollPane3.setViewportView(descripcion);

        javax.swing.GroupLayout panelDatosAulaLayout = new javax.swing.GroupLayout(panelDatosAula);
        panelDatosAula.setLayout(panelDatosAulaLayout);
        panelDatosAulaLayout.setHorizontalGroup(
            panelDatosAulaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelDatosAulaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panelDatosAulaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(panelDatosAulaLayout.createSequentialGroup()
                        .addGroup(panelDatosAulaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(lblNombre)
                            .addComponent(lblDescripcion))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(panelDatosAulaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 425, Short.MAX_VALUE)
                            .addComponent(nombre, javax.swing.GroupLayout.DEFAULT_SIZE, 425, Short.MAX_VALUE)
                            .addGroup(panelDatosAulaLayout.createSequentialGroup()
                                .addComponent(lblIdAula)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(idAula, javax.swing.GroupLayout.PREFERRED_SIZE, 153, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addContainerGap())
                    .addGroup(panelDatosAulaLayout.createSequentialGroup()
                        .addComponent(lblSuperficie)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(superficie, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(10, 10, 10)
                        .addComponent(lblAforo)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(aforo, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 6, Short.MAX_VALUE)
                        .addComponent(inactiva)
                        .addGap(14, 14, 14))))
        );
        panelDatosAulaLayout.setVerticalGroup(
            panelDatosAulaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelDatosAulaLayout.createSequentialGroup()
                .addGroup(panelDatosAulaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblIdAula)
                    .addComponent(idAula, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(11, 11, 11)
                .addGroup(panelDatosAulaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblNombre)
                    .addComponent(nombre, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelDatosAulaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblDescripcion))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(panelDatosAulaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(inactiva)
                    .addComponent(lblSuperficie)
                    .addComponent(aforo, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblAforo)
                    .addComponent(superficie, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        panelDireccion.setBorder(javax.swing.BorderFactory.createTitledBorder(null, TDSLanguageUtils.getMessage("mantenimiento.gui.panel.direccion"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 11))); // NOI18N

        lblCiudad.setText(TDSLanguageUtils.getMessage("mantenimiento.gui.etiqueta.localidad"));

        lblDireccion.setText(TDSLanguageUtils.getMessage("mantenimiento.gui.etiqueta.direccion"));

        direccion.setFont(new java.awt.Font("Tahoma", 1, 11));
        direccion.setHorizontalAlignment(javax.swing.JTextField.LEFT);

        lblCodPostal.setText(TDSLanguageUtils.getMessage("mantenimiento.gui.etiqueta.codpostal"));

        codPostal.setFont(new java.awt.Font("Tahoma", 1, 11));
        codPostal.setHorizontalAlignment(javax.swing.JTextField.CENTER);

        lblCoordGps.setText(TDSLanguageUtils.getMessage("mantenimiento.gui.etiqueta.gps"));

        gpsX.setFont(new java.awt.Font("Tahoma", 1, 11));
        gpsX.setHorizontalAlignment(javax.swing.JTextField.CENTER);

        gpsY.setFont(new java.awt.Font("Tahoma", 1, 11));
        gpsY.setHorizontalAlignment(javax.swing.JTextField.CENTER);

        lblComoLlegar.setText(TDSLanguageUtils.getMessage("mantenimiento.gui.etiqueta.comollegar"));

        comoLlegar.setFont(new java.awt.Font("Tahoma", 1, 11));
        comoLlegar.setHorizontalAlignment(javax.swing.JTextField.LEFT);

        ciudad.setEditable(false);
        ciudad.setFont(new java.awt.Font("Tahoma", 1, 11));

        nomCiudad.setEditable(false);
        nomCiudad.setFont(new java.awt.Font("Tahoma", 1, 11));

        btnBuscar.setText(TDSLanguageUtils.getMessage("mantenimiento.gui.boton.buscar"));
        btnBuscar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnBuscarActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout panelDireccionLayout = new javax.swing.GroupLayout(panelDireccion);
        panelDireccion.setLayout(panelDireccionLayout);
        panelDireccionLayout.setHorizontalGroup(
            panelDireccionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelDireccionLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panelDireccionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(panelDireccionLayout.createSequentialGroup()
                        .addComponent(lblDireccion)
                        .addGap(18, 18, 18)
                        .addComponent(direccion, javax.swing.GroupLayout.DEFAULT_SIZE, 417, Short.MAX_VALUE))
                    .addGroup(panelDireccionLayout.createSequentialGroup()
                        .addComponent(lblComoLlegar)
                        .addGap(18, 18, 18)
                        .addComponent(comoLlegar, javax.swing.GroupLayout.DEFAULT_SIZE, 417, Short.MAX_VALUE))
                    .addGroup(panelDireccionLayout.createSequentialGroup()
                        .addComponent(lblCiudad)
                        .addGap(18, 18, 18)
                        .addGroup(panelDireccionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelDireccionLayout.createSequentialGroup()
                                .addComponent(btnBuscar)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 29, Short.MAX_VALUE)
                                .addComponent(lblCoordGps)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(gpsX, javax.swing.GroupLayout.PREFERRED_SIZE, 68, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(gpsY, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelDireccionLayout.createSequentialGroup()
                                .addComponent(ciudad, javax.swing.GroupLayout.DEFAULT_SIZE, 77, Short.MAX_VALUE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(nomCiudad, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(lblCodPostal)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(codPostal, javax.swing.GroupLayout.PREFERRED_SIZE, 78, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                .addContainerGap())
        );
        panelDireccionLayout.setVerticalGroup(
            panelDireccionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelDireccionLayout.createSequentialGroup()
                .addGroup(panelDireccionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(direccion, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblDireccion))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelDireccionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblCiudad)
                    .addComponent(ciudad, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(nomCiudad, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(codPostal, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(lblCodPostal))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(panelDireccionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblCoordGps)
                    .addComponent(gpsX, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(gpsY, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(btnBuscar))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(panelDireccionLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(lblComoLlegar)
                    .addComponent(comoLlegar, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(48, 48, 48))
        );

        panelCFDisponibles.setBorder(javax.swing.BorderFactory.createTitledBorder(null, TDSLanguageUtils.getMessage("mantenimiento.gui.panel.cfisicasdisponibles"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 11))); // NOI18N

        jScrollPane1.setViewportView(lcfDisponibles);

        javax.swing.GroupLayout panelCFDisponiblesLayout = new javax.swing.GroupLayout(panelCFDisponibles);
        panelCFDisponibles.setLayout(panelCFDisponiblesLayout);
        panelCFDisponiblesLayout.setHorizontalGroup(
            panelCFDisponiblesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelCFDisponiblesLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 202, Short.MAX_VALUE)
                .addContainerGap())
        );
        panelCFDisponiblesLayout.setVerticalGroup(
            panelCFDisponiblesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelCFDisponiblesLayout.createSequentialGroup()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 171, Short.MAX_VALUE)
                .addContainerGap())
        );

        panelPrecio.setBorder(javax.swing.BorderFactory.createTitledBorder(null, TDSLanguageUtils.getMessage("mantenimiento.gui.panel.precio"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 11))); // NOI18N

        lblPrecioHora.setText(TDSLanguageUtils.getMessage("mantenimiento.gui.etiqueta.preciohora"));

        precioHora.setFont(new java.awt.Font("Tahoma", 1, 11));
        precioHora.setHorizontalAlignment(javax.swing.JTextField.RIGHT);

        lblPrecioDia.setText(TDSLanguageUtils.getMessage("mantenimiento.gui.etiqueta.preciodia"));

        precioDia.setFont(new java.awt.Font("Tahoma", 1, 11));
        precioDia.setHorizontalAlignment(javax.swing.JTextField.RIGHT);

        lblPorcentCancel.setText(TDSLanguageUtils.getMessage("mantenimiento.gui.etiqueta.porctcancel"));

        porcentCancel.setFont(new java.awt.Font("Tahoma", 1, 11));
        porcentCancel.setHorizontalAlignment(javax.swing.JTextField.CENTER);

        javax.swing.GroupLayout panelPrecioLayout = new javax.swing.GroupLayout(panelPrecio);
        panelPrecio.setLayout(panelPrecioLayout);
        panelPrecioLayout.setHorizontalGroup(
            panelPrecioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelPrecioLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panelPrecioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(lblPrecioDia)
                    .addComponent(lblPrecioHora))
                .addGap(12, 12, 12)
                .addGroup(panelPrecioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(precioDia, javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(precioHora, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 176, Short.MAX_VALUE)
                .addComponent(lblPorcentCancel)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(porcentCancel, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        panelPrecioLayout.setVerticalGroup(
            panelPrecioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelPrecioLayout.createSequentialGroup()
                .addContainerGap(11, Short.MAX_VALUE)
                .addGroup(panelPrecioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelPrecioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(porcentCancel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(lblPorcentCancel))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelPrecioLayout.createSequentialGroup()
                        .addGroup(panelPrecioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(precioHora, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblPrecioHora))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(panelPrecioLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(precioDia, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(lblPrecioDia)))))
        );

        btnConfirmar.setText(TDSLanguageUtils.getMessage("mantenimiento.gui.boton.aceptar"));
        btnConfirmar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnConfirmarActionPerformed(evt);
            }
        });

        btnCancelar.setText(TDSLanguageUtils.getMessage("mantenimiento.gui.boton.cancelar"));
        btnCancelar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnCancelarActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout panelBotonesLayout = new javax.swing.GroupLayout(panelBotones);
        panelBotones.setLayout(panelBotonesLayout);
        panelBotonesLayout.setHorizontalGroup(
            panelBotonesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelBotonesLayout.createSequentialGroup()
                .addContainerGap(102, Short.MAX_VALUE)
                .addComponent(btnConfirmar)
                .addGap(35, 35, 35)
                .addComponent(btnCancelar)
                .addGap(166, 166, 166))
        );
        panelBotonesLayout.setVerticalGroup(
            panelBotonesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelBotonesLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(panelBotonesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(btnConfirmar)
                    .addComponent(btnCancelar))
                .addContainerGap())
        );

        panelCFSeleccionadas.setBorder(javax.swing.BorderFactory.createTitledBorder(null, TDSLanguageUtils.getMessage("mantenimiento.gui.panel.cfisicasseleccionadas"), javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 11))); // NOI18N

        jScrollPane2.setViewportView(lcfSeleccionados);

        javax.swing.GroupLayout panelCFSeleccionadasLayout = new javax.swing.GroupLayout(panelCFSeleccionadas);
        panelCFSeleccionadas.setLayout(panelCFSeleccionadasLayout);
        panelCFSeleccionadasLayout.setHorizontalGroup(
            panelCFSeleccionadasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelCFSeleccionadasLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 194, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(18, Short.MAX_VALUE))
        );
        panelCFSeleccionadasLayout.setVerticalGroup(
            panelCFSeleccionadasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelCFSeleccionadasLayout.createSequentialGroup()
                .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 171, Short.MAX_VALUE)
                .addContainerGap())
        );

        dobleDcha.setText(">>");
        dobleDcha.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                dobleDchaActionPerformed(evt);
            }
        });

        dcha.setText(">");
        dcha.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                dchaActionPerformed(evt);
            }
        });

        izda.setText("<");
        izda.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                izdaActionPerformed(evt);
            }
        });

        dobleIzda.setText("<<");
        dobleIzda.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                dobleIzdaActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout panelBotonesCLayout = new javax.swing.GroupLayout(panelBotonesC);
        panelBotonesC.setLayout(panelBotonesCLayout);
        panelBotonesCLayout.setHorizontalGroup(
            panelBotonesCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelBotonesCLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(panelBotonesCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(izda, javax.swing.GroupLayout.DEFAULT_SIZE, 49, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelBotonesCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(dobleDcha)
                        .addComponent(dobleIzda))
                    .addComponent(dcha, javax.swing.GroupLayout.DEFAULT_SIZE, 49, Short.MAX_VALUE))
                .addContainerGap())
        );
        panelBotonesCLayout.setVerticalGroup(
            panelBotonesCLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, panelBotonesCLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(dobleDcha)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(dcha)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(izda)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(dobleIzda)
                .addContainerGap())
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(panelDatosAula, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(panelCFDisponibles, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGap(18, 18, 18)
                        .addComponent(panelBotonesC, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(panelCFSeleccionadas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(panelPrecio, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(panelBotones, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(panelDireccion, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(panelDatosAula, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(panelDireccion, javax.swing.GroupLayout.PREFERRED_SIZE, 134, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(panelCFSeleccionadas, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(panelCFDisponibles, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addComponent(panelBotonesC, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(35, 35, 35)))
                .addComponent(panelPrecio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(panelBotones, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void btnCancelarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCancelarActionPerformed

        dispose();     }//GEN-LAST:event_btnCancelarActionPerformed

    private void btnBuscarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnBuscarActionPerformed
        Frame frame = JOptionPane.getFrameForComponent(this);
        DialogLocalidad dlgLocalidad = new DialogLocalidad(frame, true, usLogeado);
        dlgLocalidad.setVisible(true);
        CiudadDTO ciudadBuscada = dlgLocalidad.getCiudad();
        ciudad.setText(String.valueOf(ciudadBuscada.getIdCiudad()));
        nomCiudad.setText(ciudadBuscada.getNomCiudad());
    }//GEN-LAST:event_btnBuscarActionPerformed

    @SuppressWarnings("unchecked")
    private void btnConfirmarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnConfirmarActionPerformed
        if (nombre.getText().equals("")) {
            JOptionPane.showMessageDialog(null, TDSLanguageUtils.getMessage("mantenimiento.aula.alta.err.sindatos"));
        } else if (ciudad.getText().equals("")) {
            JOptionPane.showMessageDialog(null, TDSLanguageUtils.getMessage("mantenimiento.aula.alta.err.sinciudad"));
        } else {
            try {
                AuditoriaDTO auditoria = new AuditoriaDTO();
                AulaDTO aula = new AulaDTO();

                aula.setNomAula(nombre.getText());
                aula.setDescripcion(descripcion.getText());
                aula.setDireccion(direccion.getText());
                aula.setIdCiudad(Integer.parseInt(ciudad.getText()));
                aula.setNomCiudad(nomCiudad.getText());
                aula.setSuperficie(Double.parseDouble(superficie.getText()));
                aula.setAforo(Integer.parseInt(aforo.getText()));
                aula.setPrecioHora(Double.parseDouble(precioHora.getText()));
                aula.setPrecioDia(Double.parseDouble(precioDia.getText()));
                aula.setPorcentCancelacion(Double.parseDouble(porcentCancel.getText()));
                aula.setCoordGpsX(Double.parseDouble(gpsX.getText()));
                aula.setCoordGpsY(Double.parseDouble(gpsY.getText()));
                aula.setPlano(comoLlegar.getText());
                aula.setInactivo(Constantes.ACTIVO);

                aula.setIdAula(objRemotoMantenimiento.altaAula(aula));

                auditoria.setObjeto(Constantes.AULA);
                auditoria.setSujeto(idConectado);
                auditoria.setPk(String.valueOf(aula.getIdAula()));
                auditoria.setOperacion(Constantes.INSERCION);

                Enumeration<CFisicaDTO> e = (Enumeration<CFisicaDTO>) itemSeleccionados.elements();
                List<CFisicaDTO> listaCFisicas = Collections.list(e);

                objRemotoMantenimiento.cFisicaToAula(listaCFisicas, aula.getIdAula());

                objRemotoMantenimiento.altaAuditoria(auditoria);

                JOptionPane.showMessageDialog(null, TDSLanguageUtils.getMessage("mantenimiento.aula.alta.correcta"));

                dispose();

            } catch (GestorMantenimientoException gmE) {
                JOptionPane.showMessageDialog(null,
                        gmE.getMessage(), TDSLanguageUtils.getMessage("gmantenimiento.err.usuario.alta"),
                        JOptionPane.ERROR_MESSAGE);
            } catch (RemoteException rE) {
                JOptionPane.showMessageDialog(null,
                        rE.getMessage(), TDSLanguageUtils.getMessage("gmantenimiento.err.usuario.alta"),
                        JOptionPane.ERROR_MESSAGE);
            }

        }
    }//GEN-LAST:event_btnConfirmarActionPerformed
    private void dobleDchaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_dobleDchaActionPerformed
        // obtener todos los items de la lista a seleccionar
        int numItems = itemDisponibles.getSize();

        // obtener los items
        for (int i = 0; i < numItems; i++) {
            CFisicaDTO item = (CFisicaDTO) itemDisponibles.getElementAt(i);
            itemSeleccionados.addElement(item);
        }
        lcfSeleccionados.setModel(itemSeleccionados);
    }//GEN-LAST:event_dobleDchaActionPerformed

    private void dchaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_dchaActionPerformed

        //Vamos añadiendo los items seleccionados
        int size = 0;
        for (int i = 0; i < lcfDisponibles.getSelectedValues().length; i++) {
            CFisicaDTO item = (CFisicaDTO) lcfDisponibles.getSelectedValues()[i];
            size = lcfSeleccionados.getModel().getSize();
            itemSeleccionados.add(size, item);
            size++;
        }

        lcfSeleccionados.setModel(itemSeleccionados);
    }//GEN-LAST:event_dchaActionPerformed

    private void dobleIzdaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_dobleIzdaActionPerformed
        itemSeleccionados.removeAllElements();
    }//GEN-LAST:event_dobleIzdaActionPerformed

    private void izdaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_izdaActionPerformed

        int deseleccionados[] = lcfSeleccionados.getSelectedIndices();

        for (int i = 0; i < deseleccionados.length; i++) {
            itemSeleccionados.remove(deseleccionados[i]);
        }

        lcfSeleccionados.setModel(itemSeleccionados);

    }//GEN-LAST:event_izdaActionPerformed

    /**
     * Conectar con el servidor RMI
     * Permitela conexion con el servidor RMI
     */
    private void conectarCliente() {
        try {
            objRemotoMantenimiento = (GestorMantenimientoInterface) Naming.lookup("GestorMantenimiento");
            clientConnected = true;
        } catch (NotBoundException eNbe) {
            objRemotoMantenimiento = null;
            JOptionPane.showMessageDialog(null,
                    TDSLanguageUtils.getMessage("cliente.error.notbound") + "\n" + eNbe.getMessage(),
                    TDSLanguageUtils.getMessage("cliente.error"), JOptionPane.ERROR_MESSAGE);
        } catch (RemoteException eRe) {
            objRemotoMantenimiento = null;
            JOptionPane.showMessageDialog(null,
                    TDSLanguageUtils.getMessage("cliente.error.url") + "\n" + eRe.getMessage(),
                    TDSLanguageUtils.getMessage("cliente.error"), JOptionPane.ERROR_MESSAGE);
        } catch (MalformedURLException eMULRe) {
            objRemotoMantenimiento = null;
            JOptionPane.showMessageDialog(null,
                    TDSLanguageUtils.getMessage("cliente.error.conn") + "\n" + eMULRe.getMessage(),
                    TDSLanguageUtils.getMessage("cliente.error"), JOptionPane.ERROR_MESSAGE);
        } catch (Exception eE) {
            objRemotoMantenimiento = null;
            JOptionPane.showMessageDialog(null,
                    TDSLanguageUtils.getMessage("cliente.error.conn") + "\n" + eE.getMessage(),
                    TDSLanguageUtils.getMessage("cliente.error"), JOptionPane.ERROR_MESSAGE);
        }
    }

    private void rellenaLista() {
        try {
            List<CFisicaDTO> cfDisponibles = objRemotoMantenimiento.cFisicasAula();

            itemDisponibles = new DefaultListModel();
            itemSeleccionados = new DefaultListModel();
            lcfDisponibles.setModel(itemDisponibles);
            lcfSeleccionados.setModel(itemSeleccionados);

            for (int i = 0; i < cfDisponibles.size(); i++) {
                itemDisponibles.addElement(cfDisponibles.get(i));
            }
            lcfDisponibles.setModel(itemDisponibles);

        } catch (RemoteException eRe) {
            JOptionPane.showMessageDialog(null,
                    eRe.getMessage(), TDSLanguageUtils.getMessage("mantenimiento.aula.alta.err.listas"),
                    JOptionPane.ERROR_MESSAGE);
        } catch (Exception ex) {
            JOptionPane.showMessageDialog(null,
                    ex.getMessage(), TDSLanguageUtils.getMessage("mantenimiento.aula.alta.err.listas"),
                    JOptionPane.ERROR_MESSAGE);
        }
    }

    /**
     * 
     * @return btnBuscar el botón Buscar
     */
    private JButton getBtnBuscar() {
        if (btnBuscar == null) {
            btnBuscar = new JButton();
            btnBuscar.setText(TDSLanguageUtils.getMessage("mantenimiento.gui.boton.buscar"));
            btnBuscar.addActionListener(new ActionListener() {

                public void actionPerformed(ActionEvent e) {
                    btnBuscarActionPerformed(e);
                }
            });
        }
        return btnBuscar;
    }

    private JButton getBtnConfirmar() {
        if (btnConfirmar == null) {
            btnConfirmar = new JButton();
            btnConfirmar.setText(TDSLanguageUtils.getMessage("mantenimiento.gui.boton.aceptar"));
            btnConfirmar.addActionListener(new ActionListener() {

                public void actionPerformed(ActionEvent e) {

                    btnConfirmarActionPerformed(e);

                }
            });
        }
        return btnConfirmar;
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JTextField aforo;
    private javax.swing.JButton btnBuscar;
    private javax.swing.JButton btnCancelar;
    private javax.swing.JButton btnConfirmar;
    private javax.swing.JTextField ciudad;
    private javax.swing.JTextField codPostal;
    private javax.swing.JTextField comoLlegar;
    private javax.swing.JButton dcha;
    private javax.swing.JTextArea descripcion;
    private javax.swing.JTextField direccion;
    private javax.swing.JButton dobleDcha;
    private javax.swing.JButton dobleIzda;
    private javax.swing.JTextField gpsX;
    private javax.swing.JTextField gpsY;
    private javax.swing.JTextField idAula;
    private javax.swing.JCheckBox inactiva;
    private javax.swing.JButton izda;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JLabel lblAforo;
    private javax.swing.JLabel lblCiudad;
    private javax.swing.JLabel lblCodPostal;
    private javax.swing.JLabel lblComoLlegar;
    private javax.swing.JLabel lblCoordGps;
    private javax.swing.JLabel lblDescripcion;
    private javax.swing.JLabel lblDireccion;
    private javax.swing.JLabel lblIdAula;
    private javax.swing.JLabel lblNombre;
    private javax.swing.JLabel lblPorcentCancel;
    private javax.swing.JLabel lblPrecioDia;
    private javax.swing.JLabel lblPrecioHora;
    private javax.swing.JLabel lblSuperficie;
    private javax.swing.JList lcfDisponibles;
    private javax.swing.JList lcfSeleccionados;
    private javax.swing.JTextField nomCiudad;
    private javax.swing.JTextField nombre;
    private javax.swing.JPanel panelBotones;
    private javax.swing.JPanel panelBotonesC;
    private javax.swing.JPanel panelCFDisponibles;
    private javax.swing.JPanel panelCFSeleccionadas;
    private javax.swing.JPanel panelDatosAula;
    private javax.swing.JPanel panelDireccion;
    private javax.swing.JPanel panelPrecio;
    private javax.swing.JTextField porcentCancel;
    private javax.swing.JTextField precioDia;
    private javax.swing.JTextField precioHora;
    private javax.swing.JTextField superficie;
    // End of variables declaration//GEN-END:variables
}
